package exp.day01;

public class P04_Horse {
    public static void main(String[] args) {
        int h_big, h_female, h_small;
        for (h_big = 0; h_big <= 100; h_big++) {    //以大马为基准，区间为1-33匹
            for (h_small = 0; h_small <= 100; h_small++) {
                for (h_female = 0; h_female <= 100; h_female++) {
                    if (3 * h_big + 2 * h_female + h_small / 2 == 100 && h_big + h_female + h_small == 100 && h_small % 2 == 0) {
                        System.out.println("大马:" + h_big + "匹    母马:" + h_female + "匹    小马:" + h_small + "匹");
                    }
                }
            }
        }
    }
}
